package pl.kkalisz.android.ui.mainmenu;

import pl.kkalisz.android.R;
import pl.kkalisz.android.R.layout;
import pl.kkalisz.android.R.menu;
import pl.kkalisz.android.model.item.uItemActionButton;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.support.v4.app.NavUtils;

public class uMainMenuActivity extends Activity {


    LinearLayout mLayout;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_menu);
        
        mLayout = (LinearLayout) findViewById(R.id.main_menu_buttons);
        
        mLayout.addView(new uItemActionButton(this));
        mLayout.addView(new uItemActionButton(this));
        mLayout.addView(new uItemActionButton(this));
        uItemActionButton a = new uItemActionButton(this);
        a.setText("ww");
        mLayout.addView(a);
        
       uItemActionButton  b = (uItemActionButton) getLayoutInflater().inflate(R.layout.item_action_button_standard, null);
       mLayout.addView(b);
       
       mLayout.addView(uItemActionButton.createFromLayout(this));
        
        
        
        
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main_menu, menu);
        return true;
    }
    
    
    
    public LayoutInflater getLayoutInflater()
    {
        LayoutInflater inflater = (LayoutInflater)   getBaseContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        return inflater;
    }

    
}
